<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui"
	template="/pages/templates/TemplateVisiteur.xhtml">

	<ui:define name="titre">Comme au resto</ui:define>

	<ui:define name="content">
		<h:head>
			<div>
				<br /> <span> Liste des restaurants : </span> <br /> <br />
			</div>
		</h:head>
		<h:body>
			<h:form>
				<p:dataTable id="idTableRestaurants" border="1"
					value="#{listeRestaurantMB.listeRestaurants}" var="r">
					<p:column>
						<f:facet name="header">
							<f:verbatim>id</f:verbatim>
						</f:facet>
						<h:commandLink value="#{r.id}"
							action="#{listeRestaurantMB.doSelection}">
							<f:setPropertyActionListener
								target="#{listeRestaurantMB.idSelRestaurant}" value="#{r.id}" />
						</h:commandLink>
					</p:column>
					<p:column>
						<f:facet name="header">
							<f:verbatim>nom</f:verbatim>
						</f:facet>
						<h:outputText value="#{r.nom}" />
					</p:column>
				</p:dataTable>
			</h:form>
		</h:body>
	</ui:define>

</ui:composition>
